package trabalho.das.fxml.views;

import java.io.IOException;
import javafx.fxml.FXMLLoader;
import javafx.scene.layout.BorderPane;
import trabalho.das.fxml.views.controladores.ControladorCriarFamilia;


public class CriarFamiliaView extends BorderPane {
    ControladorCriarFamilia controlador;
    
    public CriarFamiliaView() {
        controlador = new ControladorCriarFamilia();
        FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/resources/fxml/CriarFamilia.fxml"));
        fxmlLoader.setRoot(this);
        fxmlLoader.setController(controlador);

        try {
            fxmlLoader.load();

        } catch (IOException exception) {
            throw new RuntimeException(exception);
        }
    }
}
